package com.lw.jdbc.dao;

import com.lw.jdbc.domain.User;

import java.sql.SQLException;
import java.util.List;

public interface UserDao {
     void add(User user) throws SQLException;
     void delete(Integer id) throws SQLException;
     void update(User user) throws SQLException;
     List<User> find() throws SQLException, InstantiationException, IllegalAccessException;
      User findById(Integer id) throws SQLException;
}

